<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit" />
		<meta name="robots" content="index, follow" />
		<title>会员注册</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta name="author" content="order by website" />
		<script type="text/javascript" src="__XIAOHE__/js/jquery.min.js"></script>
		<script src="__XIAOHE__/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
		 crossorigin="anonymous"></script>
		<script src="__XIAOHE__/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/bootstrap.min.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/style.css" />
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/css/swiper.min.css" />
		

		<!-- 引入样式文件 -->
		<link rel="stylesheet" type="text/css" href="__XIAOHE__/yuye/index.css">
		<!-- 引入 Vue 和 Vant 的 JS 文件XiaoHe QQ496631085  -->
		<script src="__XIAOHE__/yuye/vue.min.js"></script>
		<script src="__XIAOHE__/yuye/vant.min.js"></script>
	</head>
	<body style="background: #ededed;">
		<div class="row">
			<div class="col-xs-12" style="padding: 0;">
				<div class="registered1">
					<div class="registered1a">
						<img src="__XIAOHE__/images/registered1.jpg" >
					</div>
					<div class="registered1b">
						<div class="registered1b1">开始注册</div>
						<div class="registered1b2">必填信息</div>
						
						<div class="registered1b3">
							<div class="registered1b3a">公司名称</div>
							<div class="registered1b3b">
								<input type="text" id="ltdname" placeholder="请输入公司名称"/>
							</div>
						</div>
						<div class="registered1b3">
							<div class="registered1b3a">房间号</div>
							<div class="registered1b3b">
								<input type="text" id="room" placeholder="请输入公司房间号"/>
							</div>
						</div>

					

						<div class="registered1b3">
							<div class="registered1b3a">姓名</div>
							<div class="registered1b3b">
								<input type="text" id="name" placeholder="请输入姓名"/>
							</div>
						</div>


						<div class="registered1b3">
							<div class="registered1b3a">手机</div>
							<div class="registered1b3b">
								<input type="text" id="tel" placeholder="请输入手机号码"/>
							</div>
						</div>

						<div class="registered1b3">
							<div class="registered1b3a">验证码</div>
							<div class="registered1b3b">
								<input style="width:60%;" type="text" id="vcode" placeholder="请输入短信验证码 "/> 	<span><a id="yzm" href="javascript:void(0);">获取验证码</a></span>
							</div>
						</div>


						<div class="Suggestions1e">
							<button id="xiaohe" type="button">立即申请</button>
						</div>
					</div>
					
					<script type="text/javascript">
						$("#yzm").click(function(){
						    $.post("/api/yuye/send_yzm",{
								// name:$("#name").val(),
								tel:$("#tel").val(),
								type:1
							},function(data,status){
						        // alert("Data: " + data + "nStatus: " + status);
						        if(data.code>0){
						        	alert('验证码已发送');
						        }else{
						        	alert('发送失败：'+data.msg);
						        }
						    });
						});




						$("#xiaohe").click(function(){
						    $.post("/api/yuye/reg_user",{
								name:$("#name").val(),
								tel:$("#tel").val(),
								ltdname:$("#ltdname").val(),
								room:$("#room").val(),
								vcode:$("#vcode").val(),
							},function(data,status){
						        // alert("Data: " + data + "nStatus: " + status);
						        if(data.code>0){
						        	alert('注册成功');
						        	window.location.reload();
						        }else{
						        	alert('注册失败：'+data.msg);
						        }
						    });
						});


					</script>
					
				</div>
				
				
			</div>
		</div>
	</body>
</html>
